package com.tqjc.system.common.enums;

import com.tqjc.system.common.constant.AddTaskConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @description:  天车
 * @Author: 86195
 * @Date: 2024/1/4 9:22
 **/
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum CarMonitorDotInfoEnum {


    WASTE_STEEL_NO_1(CarPLCInfoEnum.WASTE_STEEL_NO_1.getMacSN(),new Object[][]{{"起升装置故障",false},{"大车变频故障",false}
            ,{"大车激光故障",true}, {"小车变频故障",false},{"小车激光故障",true}},CarPLCInfoEnum.WASTE_STEEL_NO_2.getMacSN()
            , AddTaskConstant.WASTE_STEEL_SPAN_NO,"DB8.46.1","废钢1号天车监控点位标签"),
    WASTE_STEEL_NO_2(CarPLCInfoEnum.WASTE_STEEL_NO_2.getMacSN(),new Object[][]{{"起升装置故障",false},{"大车变频故障",false}
            ,{"大车激光故障",true}, {"小车变频故障",false},{"小车激光故障",true}},CarPLCInfoEnum.WASTE_STEEL_NO_1.getMacSN()
            ,AddTaskConstant.WASTE_STEEL_SPAN_NO,"DB8.46.1","废钢2号天车监控点位标签"),
    DREGS_STEEL_NO_1(CarPLCInfoEnum.DREGS_STEEL_NO_1.getMacSN(),new Object[][]{{"起升调速器故障",false},{"大车变频故障",false}
            ,{"大车激光故障",true}, {"小车变频故障",false},{"小车激光故障",true}},CarPLCInfoEnum.DREGS_STEEL_NO_2.getMacSN()
            ,AddTaskConstant.DREGS_STEEL_SPAN_NO,"DB17.46.1","废渣1号天车监控点位标签"),
    DREGS_STEEL_NO_2(CarPLCInfoEnum.DREGS_STEEL_NO_2.getMacSN(),new Object[][]{{"起升调速器故障",false},{"大车变频故障",false}
            ,{"大车激光故障",true}, {"小车变频故障",false},{"小车激光故障",true}},CarPLCInfoEnum.DREGS_STEEL_NO_1.getMacSN()
            ,AddTaskConstant.DREGS_STEEL_SPAN_NO,"DB17.46.1","废渣2号天车监控点位标签");


    private String carName;
    //二维数组    object[标签名,正常值]
    private Object[][] dotLableInfo;

    private String otherCarName;

    private String spanNo;

    private String taskPauseAddress;

    private String desc;


    public static CarMonitorDotInfoEnum getEnumByCarName(String carName){

        for (CarMonitorDotInfoEnum value : CarMonitorDotInfoEnum.values()) {
            if(value.getCarName().equals(carName)){
                return value;
            }
        }

        return null;
    }



}
